package com.ajz.manager.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

import com.ajz.common.entity.BaseEntity;

/**
 * 
 * <p>
 * 工种
 * </p>
 *
 * @author xyj
 * @date 2018年6月12日
 */
@Entity
public class Occupation extends BaseEntity<String> {

	private String name; // 工种名称
	
	@OneToMany(cascade = CascadeType.REFRESH, mappedBy = "occupation", fetch = FetchType.LAZY)  
	private List<OrdOrder> order; // 订单
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<OrdOrder> getOrder() {
		return order;
	}

	public void setOrder(List<OrdOrder> order) {
		this.order = order;
	}
}
